﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_Slideshow : System.Web.UI.UserControl
{
    BUS_Advertise Ad = new BUS_Advertise();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadData();
        }
    }
    public void loadData()
    {


        Slider_Content.DataSource = Ad.Advertise_GetByTop(0, "Position = '1' and [Status] = '1' and DateEnd >= GETDATE() and DateStar <= GETDATE()", "[Order]");
        Slider_Content.DataBind();
    }
}